export const MENU_TYPE = {
  GROUP: "分组",
  PAGE: "页面",
  API: "接口",
  LINK: "链接"
} as const;

export const MENU_TYPE_NAME = {
  [MENU_TYPE.GROUP]: "分组",
  [MENU_TYPE.PAGE]: "页面",
  [MENU_TYPE.API]: "接口",
  [MENU_TYPE.LINK]: "链接"
} as const;

export const MENU_TYPE_OPTIONS = Object.values(MENU_TYPE).map(type => ({
  label: MENU_TYPE_NAME[type],
  value: type
}));  

export const USER_STATUS = {
  ENABLED: 0,  
  DISABLED: 1
} as const;

export const USER_STATUS_NAME = {
  [USER_STATUS.ENABLED]: "启用",
  [USER_STATUS.DISABLED]: "禁用"
} as const;

export const USER_STATUS_OPTIONS = Object.values(USER_STATUS).map(status => ({
  label: USER_STATUS_NAME[status],
  value: status
}));
